Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull Request automation in krel release-notes #1304

Merged
merged 2 commits into from
May 20, 2020

Conversation

puerco
Copy link
Member

@puerco puerco commented May 20, 2020

What type of PR is this?

/kind feature

What this PR does / why we need it:

This PR automates the creation of pull requests to update the release notes draft in k/sig-release and the release notes website in ksigs/release-notes. It mainly puts to work changes to the github library merged in #1287 and #1268 so most of the work was already in place.

It also verifies that the repositories used by the user are actual forks of their kubernetes counterparts..

Which issue(s) this PR fixes:

Related to #834

Special notes for your reviewer:

I've broken the PR into two commits, one for the automation of the release notes draft and one for the website patches.

The website portion is a bit temporary and will be removed soon as we are about to begin implementing some changes to move the json files to a GCP bucket. I plan to refactor some of the release notes subcommand code before that.

Does this PR introduce a user-facing change?

After this patch, running krel with --create-draft-pr or --create-website-pr will now really create pull requests in github.

* Automate the creation of pull requests to update the release notes draft in `kubernetes/sig-release`
* Automate the creation of pull requests in `kubernetes-sigs/release-notes` to update relnotes.k8s.io 

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 20, 2020
@k8s-ci-robot k8s-ci-robot added the sig/release Categorizes an issue or PR as relevant to SIG Release. label May 20, 2020
@puerco puerco changed the title Pull request automation Pull Request automation in krel release-notes May 20, 2020
@puerco puerco force-pushed the pull-request-automation branch 2 times, most recently from 47c2f5e to 9a84972 Compare May 20, 2020 04:47
@puerco
Copy link
Member Author

puerco commented May 20, 2020

For reference, kubernetes-sigs/release-notes#153 was automatically generated using these changes.

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I just have a couple of nits.

cmd/krel/cmd/release_notes.go Outdated Show resolved Hide resolved
cmd/krel/cmd/release_notes.go Outdated Show resolved Hide resolved
cmd/krel/cmd/release_notes.go Outdated Show resolved Hide resolved
@puerco
Copy link
Member Author

puerco commented May 20, 2020

I had forgotten to cc the team
/cc @reylejano-rxm @JamesLaverack @AGMETEOR @wilsonehusin

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/hold

Feel free to lift the hold if you want to address the branch issue in a follow-up PR.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 20, 2020
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 20, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: puerco, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 20, 2020
@puerco
Copy link
Member Author

puerco commented May 20, 2020

I'm merging this one and I'll start fixing the issue found in kubernetes-sigs/release-notes#153
/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 20, 2020
@k8s-ci-robot k8s-ci-robot merged commit 673e645 into kubernetes:master May 20, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.19 milestone May 20, 2020
@puerco puerco deleted the pull-request-automation branch May 20, 2020 18:34
@justaugustus justaugustus added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 7, 2020
@k8s-ci-robot k8s-ci-robot removed the needs-kind Indicates a PR lacks a `kind/foo` label and requires one. label Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/release-eng Issues or PRs related to the Release Engineering subproject cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/release Categorizes an issue or PR as relevant to SIG Release. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants